<?php


namespace app\wechat\validate;


use think\Validate;

class Order extends Validate
{
    protected $rule=[
        'id|商品'=>'require',
        'address_id|地址'=>'require',
    ];
    protected $message=[
        'id.require'=>'请选择下单商品',
        'address_id.require'=>'请选择地址',
        'sex.number'=>'性别选择错误',
        'sex.between'=>'性别选择错误',
    ];
    protected $scene=[
        'order'=>['id','address_id'],
        'jijuan_name'=>['name'],
    ];
}